#ifndef HT_ROOM_H
#define HT_ROOM_H
#include <fstream>
#include "getch.h"
#include "ht_guest.h"
typedef int mode;
enum RoomType
{
	All=0,
	Small=1,
	Medium=2,
	Large=4
};
class Room : public Guest
{
	int room_id;
	RoomType room_type;
	float room_price;
	int room_status;
	Guest room_gst[4];
	public:
	Room(void);
	void setRoomId(int _roomid);
	int getRoomId(void);
	void setRoomType(RoomType _roomtype);
	RoomType getRoomType(void);
	void setRoomPrice(float _roomprice);
	float getRoomPrice(void);
	void setRoomStatus(int _roomstatus);
	int getRoomStatus(void);
	void setRoomGuest(const string& _name,const string& _sex,const string& _id,int st);
	Guest* getRoomGuest(void);
	void help(void);
	int check_in(Room* room);
	bool check_out(Room* room);
	Room* find_id(Room* room,int room_id);
	void show_room_msg(Room* room,int room_id,mode cmd = 0);
	int displayAllRoom(Room* _room,RoomType type);
	int find_empty_room(Room* _room,RoomType type);
};
#endif//HT_ROOM_H
